package com.jcoinexchage.user.common.vo;




import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;


//@ApiModel
@Data
public class RegisterEmailReq {

    ////@ApiModelProperty(value = "邮箱", required = true)
    @NotBlank(message = "Email cannot be empty")
    private String email;

    ////@ApiModelProperty(value = "验证码（6位纯数字组成）", required = true)
    @NotBlank(message = "verification code must be filled")
    @Size(min = 6,max = 6,message = "Verification code format error")
    private String code;

    ////@ApiModelProperty(value = "密码（确认密码前端确认即可，密码为８-20位密码及数字组成）", required = true)
    @NotNull(message = "pwd can not be blank")
    @Pattern(regexp = "^[a-zA-Z0-9]{8,20}$", message = "The password can only be 8 to 20 letters and numbers")
    private String password;
}
